<%@ page language="java" import="org.apache.commons.lang.*,ll.sms.web.*"  pageEncoding="UTF-8"%>
<%

//被充值者ID，
String chargeedId = ParamUtils.getParameter(request,"chargeedId");
//被充值者用户名
String opflag = ParamUtils.getParameter(request,"opflag");

String chargedUsername = ParamUtils.getParameter(request,"chargedUsername");
chargedUsername = chargedUsername==null?"":new String(chargedUsername.getBytes("ISO-8859-1"),"GBK");
String opStatu=null;
int charge = ParamUtils.getIntParameter(request,"addcharge",0);
if(!StringUtils.isBlank(chargedUsername) && !StringUtils.isBlank(chargeedId) && "a".equals(opflag)){
	opStatu=WebBusinessImpl.getInstance().updateCharge("sms_admin",chargeedId,charge,chargedUsername);
}else if(!StringUtils.isBlank(chargedUsername) && !StringUtils.isBlank(chargeedId) && "u".equals(opflag)){
	opStatu=WebBusinessImpl.getInstance().updateCharge("sms_user",chargeedId,charge,chargedUsername);
}else{
	out.print( "{success:false,errors:{msg:'操作失败！未找到ID类型'}}");
	return;
}

out.print(opStatu);

%>
